package com.iflytek.springboot_medicine.entity;

import lombok.Data;

@Data
public class UserVO {
    private Integer id;
    private String username;
    private String role;

    public UserVO(User user) {
        this.id = user.getId();
        this.username = user.getName();
        this.role = user.getRole();
    }
}
